next up previous
Next: 4.4 Pitfalls of 32-bit Up: 4 The Effects of Previous: 4.2 The 64-bit Xlib

4.3 X API Types That Change Size

  
Table 3: Type declarations in various X APIs that are based on the size of long.

There are a reasonably significant number of type declarations in the various standard X APIs that are based on the size of long, and these types will increase in size relative to their 32BIT sizes when compiling with a 64-bit LP64 data type model. Be careful in your code not to assume the sizeof these types is the same as the sizeof(int). Table 3 lists the types to be wary of.



next up previous
Next: 4.4 Pitfalls of 32-bit Up: 4 The Effects of Previous: 4.2 The 64-bit Xlib



Mark Kilgard
Sat Dec 30 11:52:07 PST 1995